package com.angel.mapper;

import com.angel.bean.dto.VipInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.angel.bean.VipInfo;

@Mapper
public interface VipInfoDao {
    int insert(@Param("vipInfo") VipInfo vipInfo);

    int insertSelective(@Param("vipInfo") VipInfo vipInfo);

    int insertList(@Param("vipInfos") List<VipInfo> vipInfos);

    int update(@Param("vipInfo") VipInfo vipInfo);

    int updateVipNo(@Param("vipInfo") VipInfo vipInfo);

    List<VipInfo> findAll(@Param("vipInfo") VipInfo vipInfo);

    /**
     * 关联查询会员信息，包含会员卡名称
     * @param vipInfo
     * @return
     */
    List<VipInfoDto> findAllHaveCardName(@Param("vipInfo") VipInfo vipInfo);
    /**
     *根据会员信息进行会员的详细信息搜索
     * @param vipInfo
     * @return
     */
    List<VipInfo> searchVipInfo(@Param("vipInfo")VipInfo vipInfo);

    int delVipInfo(@Param("vipInfo")VipInfo vipInfo);
}
